﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Schema;
using CXMLStudioIDE;
using CXMLStudioIDE.Common;

namespace CXMLStudioIDE.Common.Entities
{
    public class EntityTypeCollection : CollectionBase
    {
        #region Methods

        public void Add(EntityType EntityType)
        {
            InnerList.Add(EntityType);
        }
        public void Remove(int Index)
        {
            InnerList.RemoveAt(Index);
        }
        public void RemoveObject(EntityType EntityType)
        {
            InnerList.Remove(EntityType);
        }
        public EntityType Item(int Index)
        {
            return (EntityType)InnerList[Index];
        }
        public ArrayList GetList()
        {
            return InnerList;
        }
        public bool hasElements()
        {
            return (InnerList.Count > 0 ? true : false);
        }

        #endregion
    }
}
